package org.jeecg.modules.product.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.product.entity.JkProduct;
import org.jeecg.modules.product.mapper.JkProductMapper;
import org.jeecg.modules.product.service.IJkProductService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: jk_product
 * @Author: jeecg-boot
 * @Date:   2025-05-14
 * @Version: V1.0
 */
@Service
public class JkProductServiceImpl extends ServiceImpl<JkProductMapper, JkProduct> implements IJkProductService {

    @Override
    public List<JkProduct> queryByCompanyId(String companyId) {
        QueryWrapper<JkProduct> wrapper = new QueryWrapper<>();
        wrapper.eq("companyID", companyId); // 数据库字段名
        return this.list(wrapper);
    }
}
